<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2019/10/31
 * Time: 11:24
 */

namespace app\adminapiv3\service;


class ServerUpdateLog extends Base
{
    function list($params, $limit)
    {
        $server = new \app\common\service\ServerUpdateLog();
        $data = $server->list($params, $limit);
        foreach ($data['data'] as $k => $v){
            $data['data'][$k]['ctime'] = date('Y-m-d H:i:s', $v['ctime']);
        }

        return $data;
    }

    function hostList($params, $limit)
    {
        $server = new \app\common\service\ServerUpdateLog();
        $data = $server->hostList($params, $limit);

        return $data;
    }

    function del($id)
    {
        $server = new \app\common\service\ServerUpdateLog();
        $server->del($id);
    }

    function clear()
    {
        $server = new \app\common\service\ServerUpdateLog();
        $server->clear();
    }
}